<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>07-v-model的使用</title>
  <!-- <script src="./js/vue.js"></script> -->
  <script src="./js/vue.js"></script>
</head>
<body>
  <div id="app">
    <p>{{msg}}</p>
    <input type="text" v-model="msg">
    <select name="" id="">
      <option value=""></option>
    </select>
    <input type="radio">
    <input type="checkbox">
    <textarea name="" id="" cols="30" rows="10"></textarea>
  </div>
  <script>
    const vm = new Vue({
      el: '#app',
      // el:document.getElementById('app')
      data: {
        msg: 'hello world'
      }
    })

    // 不推荐主动去操作DOM

    // Object.defineProperty()
  </script>
</body>
</html>